package com.honey.solr.schema.node;

import com.honey.compilation.xml.XmlElement;
import com.honey.solr.SolrConstant;
import com.honey.solr.schema.SchemaNode;

public class DefaultSearchField implements SchemaNode {
	
	@Override
	public void appendChildNode(XmlElement root) {
		XmlElement answer = new XmlElement(root,"defaultSearchField").addTextElement(SolrConstant.SOLR_SCHEMA_COPY_FIELD_NAME);
		answer.addXmlDoc("配置默认的查询域, 主要用于搜索参数中没有指定具体的field.");
	}
}
